$(function () {
    $(".article").fullpage({
        scrollingSpeed: 200,
        afterRender: function () {
            autoScrolling();
        },
        afterResize: function(){
            autoScrolling();
        },
        afterLoad:function(anchorLink,index){
        },
        onLeave: function(index, nextIndex, direction){
            $('.slider_list').removeClass('animated flipInX line');
            $('.slider_list').eq(nextIndex-1).addClass('animated flipInX line');
        },
        anchors: ['page1','page2','page3','page4','page5',]
    });


    function autoScrolling(){
        var $ww = window.innerWidth;
        if($ww < 992){
            $.fn.fullpage.setAutoScrolling(false);
        } else {
            $.fn.fullpage.setAutoScrolling(true);
        }
    }

})

